package vg.com.chatonline.adapter;

import com.vg.view.FindFriendFragment;
import com.vg.view.FriendFragment;
import com.vg.view.OrtherFragment;
import com.vg.view.OtherFragmentTest;
import com.vg.view.Profile;
import com.vg.view.UserFragment;
import com.vg.view.info_User;
import com.vg.view.messageFriendFragment;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class DashboardAdapter extends FragmentPagerAdapter {

	public DashboardAdapter(FragmentManager fm) {
		super(fm);
	}

	@Override
	public Fragment getItem(int arg0) {
		// Set cac Fragment cho cac tab tuong ung
		switch (arg0) {
		case 0:
			return OrtherFragment.newinstance();
		case 1:
			return OtherFragmentTest.newinstance();
		case 2:
			return FindFriendFragment.newinstance();
		case 3:
			return FindFriendFragment.newinstance();
		}
		return null;
	}

	@Override
	public int getCount() {
		return 4;
	}

}
